package com.gzhu.knowledgeAdmin.controller;


import com.gzhu.knowledgeAdmin.common.result.R;
import com.gzhu.knowledgeAdmin.entity.CallRecord;
import com.gzhu.knowledgeAdmin.service.CallRecordService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/callrecord")
public class CallRecordController {

    @Resource
    private CallRecordService callRecordService;


    @PostMapping("/find")
    public R find(@RequestBody CallRecord callRecord)
    {
        return R.ok(callRecordService.getCallRecord(callRecord));
    }


}
